package ooday01;

public class Car {
    String brand;
    String color;
    double price;
    int capacity;

    Car(){}
    Car(String brand,String color,double price,int capacity){
        this.brand = brand;
        this.color = color;
        this.price = price;
        this.capacity = capacity;
    }
    void start(){
        //                   bm.brand           bm.color         bm.price                 bm.capacity
        //                   ad.brand           ad.color         ad.price                 ad.capacity
        //                   bc.brand           bc.color         bc.price                 bc.capacity
        System.out.println(this.brand+"品牌的"+this.color+"色的"+this.price+"块钱的载客量为"+this.capacity+"的车启动了");
    }
    void run(){
        //                   bm.brand           bm.color         bm.price                 bm.capacity
        //                   ad.brand           ad.color         ad.price                 ad.capacity
        //                   bc.brand           bc.color         bc.price                 bc.capacity
        System.out.println(this.brand+"品牌的"+this.color+"色的"+this.price+"块钱的载客量为"+this.capacity+"的车跑起来了");
    }
    void stop(){
        //                   bm.brand           bm.color         bm.price                 bm.capacity
        //                   ad.brand           ad.color         ad.price                 ad.capacity
        //                   bc.brand           bc.color         bc.price                 bc.capacity
        System.out.println(this.brand+"品牌的"+this.color+"色的"+this.price+"块钱的载客量为"+this.capacity+"的车停止了");
    }




}
